CC=arm-apple-darwin9-gcc
LD=$(CC)
LDFLAGS=	-lobjc \
			-framework UIKit \
			-framework Foundation \
			-framework CoreFoundation \
			-framework CoreGraphics \
			-framework IOKit \
			-framework Celestial \
			-framework TelephonyUI \
			-L"/usr/lib" \
			-F"/System/Library/Frameworks" \
			-F"/System/Library/PrivateFrameworks" \
			-bind_at_load
App=PowerTool_
CFLAGS= 	-I/var/include

all:	$(App)

$(App):	main.o gTxtEditApp.o gTxtEditView.o Jay.o
	$(LD) $(LDFLAGS) -o $@ $^
		ldid -S $(App)



%.o:	%.m
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

clean:
		rm -f *.o $(App)